package com.sdp.wx.view;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdp.core.bizc.annotation.ViewColumn;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WzInputView extends Model<WzInputView>{
	private static final long serialVersionUID = 1L;

	@ViewColumn("a.input_code")
    private String inputCode;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ViewColumn("a.input_time")
    private LocalDateTime inputTime;

    @ViewColumn("a.op_no")
    private String opNo;

    @ViewColumn("a.op_name")
    private String opName;

    @ViewColumn("a.warehouse_code")
	private String warehouseCode;

    @ViewColumn("a.is_use")
    private String isUse;

    @ViewColumn("a.input_type")
    private String inputType;

    @ViewColumn("a.is_output")
    private String isOutput;

    @ViewColumn("a.inventory_name")
    private String inventoryName;
    
    /**
     * 盘存单内码
     */
    @ViewColumn("a.inventory_id")
    private String inventoryId;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ViewColumn("a.input_date")
    private LocalDate inputDate;

    @ViewColumn("a.input_amount")
    private BigDecimal inputAmount;

	@ViewColumn("b.wz_no")
	private String wzNo;

	@ViewColumn("b.wz_name")
	private String wzName;

	@ViewColumn("b.now_num")
	private BigDecimal nowNum;

	@ViewColumn("b.input_num")
    private BigDecimal inputNum;

    @ViewColumn("b.arrival_num")
    private BigDecimal arrivalNum;
    
    /**
     * 不合格数量
     */
    @ViewColumn("b.unqualified_num")
    private BigDecimal unqualifiedNum;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ViewColumn("b.wz_mfd")
    private LocalDate wzMfd;

    @ViewColumn("b.batch_code")
    private String batchCode;

    @ViewColumn("b.vendor_code")
    private String vendorCode;


    @ViewColumn("b.arrival_code")
    private String arrivalCode;

    @ViewColumn("b.purchase_code")
    private String purchaseCode;


    @ViewColumn("b.arrival_key_id")
    private String arrivalKeyId;

    @ViewColumn("b.purchase_price")
    private BigDecimal purchasePrice;
    
    /**
     * 军价
     */
    @ViewColumn("b.army_price")
    private BigDecimal armyPrice;

    /**
     * 销售价
     */
    @ViewColumn("b.sale_price")
    private BigDecimal salePrice;

    @ViewColumn("b.org_no")
    private String orgNo;
    
    /**
     * 器材计量单位
     */
    @ViewColumn("b.wz_unit")
    private String wzUnit;
    
    /**
     * 器材型号
     */
    @ViewColumn("b.wz_model")
    private String wzModel;


    @ViewColumn("b.key_id")
    private String keyId;
}
